<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04_元素溢出处理</title>
    <style>
        .overflow{
            background-color: lightpink;
            width: 200px;
            height: 200px;
            overflow: hidden;
            overflow: visible;
            overflow: scroll;
            overflow: auto;
        }
        .text{
            background-color: lightskyblue;
            width: 200px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
<div class="text">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto asperiores aut cupiditate dignissimos eos eum eveniet illum ipsum labore laudantium necessitatibus nostrum perspiciatis quisquam sequi sit, ullam ut voluptates voluptatum?

</div>
<div class="overflow">
    <img src="img/1.png" alt="">
</div>
</body>
</html>